package com.test1;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class People {

    private String name;
    private Integer age;

    public void setMessage(String name,Integer age){
        this.name=name;
        this.age=age;
    }
    public void getMessage(){
        System.out.println("name:"+name+"age"+age);
    }

    public void initMethod(){
        System.out.println("initMethod");
    }

    public void destroyMethod(){
        System.out.println("destroyMethod");
    }

    public void factoryMethod(){
        System.out.println("factoryMethod");
    }

}
